
import {
    request,
    IP
} from '../request'

export function getDataByPageAndSize(page = 1, size = 10) {
    return request({
        url: `/practicebase/baseList`,
        params: {
            page,
            size
        }
    })
}

export function LikeSearch(name,page=1,size=10) {
    return request({
        url: `/practicebase/baseFind`,
        params: { name,page,size },
        methods:"GET"
    })
}

export function deleteById(id) {
    return request({
            url: `/practicebase/baseDel`,
            params:{ id },
            methods:"GET"
    })
}

export function appendData(data) {
    return request({
        url: `/practicebase/baseadd`,
        method: 'post',
        headers: {
            "Content-type": "multipart/form-data"
        },
        data
    })
}

export function Check(id,check) {
    return request({
        url: `/practicebase/baseCheck`,
        params:{ id,check },
        methods:"GET"
    })
}

export function editData(data) {
    return request({
        url: `/practicebase/baseEdit`,
        method: 'post',
        data
    })
}

